<?php
$data = dbarray(dbquery("SELECT * FROM ".$db_prefix."charts WHERE id = '".$editid."'"));
echo "<form action='".$PHP_SELF."' method='post'>
<input type='hidden' name='func' value='doedit'>
<input type='hidden' name='id' value='".$data['id']."'>
<table width='100%' class='tbl'>
<tr>
    <td>".$locale['ctbs009']."</td>
    <td><input type='text' name='artist' size='50' class='textbox' value='".$data['artist']."'></td>
</tr>
<tr>
    <td>".$locale['ctbs010']."</td>
    <td><input type='text' name='title' size='70' class='textbox' value='".$data['title']."'></td>
</tr>
<tr>
    <td colspan='2' align='center'><input type='submit' value='".$locale['ctbs011']."' class='button'></td>
</table></form>";
?>

